CC:=gcc
glib:=-I/home/geclab/buildroot-2016.11/output/host/usr/arm-none-linux-gnueabi/sysroot/usr/include/glib-2.0

sem_unname_test: sem_unname_test.c
	$(CC) -o $@ $^ -lrt -pthread
	-./$@
	-rm -rf $@

sem_unname_process_test: sem_unname_process_test.c
	$(CC) -o $@ $^ -lrt -pthread
	-./$@
	-rm -rf $@

sem_pv_test: sem_pv_test.c
	$(CC) -o $@ $^ -lrt -pthread
	-./$@
	-rm -rf $@

sem_pv_process_test: sem_pv_process_test.c
	$(CC) -o $@ $^ -lrt -pthread
	-./$@
	-rm -rf $@

thread_pool_test:thread_pool_test.c
	$(CC) -o $@ $^ $(glib)
	-./$@
	-rm -rf $@

execve_test:execve_test.c
	$(CC) -o $@ $^
	-./$@
	-rm -rf $@